import request from '@/utils/request'
const api = {
// 获取所有表格的表头数据
  getAllTableHead(data, method) {
    return request({
      url: '/api/Public/GetPageTableStyleDataList',
      method: method || 'post',
      data: data
    })
  },
  // 保存操作菜单表格样式控制数据
  saveTableStyle(data, method) {
    return request({
      url: '/api/Public/SaveOperatorPageTableStyle',
      method: method || 'post',
      data: data
    })
  },
  // 重置样式时使用
  resetTableStyle(data, method) {
    return request({
      url: '/api/Public/DeleteOperatorPageTableStyle',
      method: method || 'post',
      data: data
    })
  },
  // 头像上传
  UploadHeadPicture(data, method) {
    return request({
      url: '/api/ExcuteUploadFile/UploadHeadPicture',
      method: method || 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: data
    })
  },
  // 上传单个文件
  UploadSingleFile(data, method) {
    return request({
      url: '/api/ExcuteUploadFile/UploadSingleFile',
      method: method || 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: data
    })
  },

  // 上传图片文件
  UploadImageFile(data, method) {
    return request({
      url: '/api/ExcuteUploadFile/UploadImageFile',
      method: method || 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: data
    })
  },
  // 获得仓库类型数据
  GetWarehouseTypeDataList(data, method) {
    return request({
      url: '/api/Public/GetWarehouseTypeDataList',
      method: method || 'post',
      data: data
    })
  },
  // 地区联动数据
  GetTreeAreaDataList(data, method) {
    return request({
      url: '/api/AreaManagement/GetTreeAreaDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取供应商类型数据
  GetSupplierTypeDataList(data, method) {
    return request({
      url: '/api/Public/GetSupplierTypeDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取供应商结算方式数据
  GetSettlementWayDataList(data, method) {
    return request({
      url: '/api/Public/GetSettlementWayDataList',
      method: method || 'post',
      data: data
    })
  }
}
export default api
